# -*- coding: utf-8 -*-
class paperconfirm():
    def __init__(self, driver):
        self.driver = driver
    ###############查询页面###################
    #保单号
    def policyNo(self):
        return self.driver.find_element_by_xpath("//*[@id='searchBar']/div[1]/div/div[1]/div[2]/div/input")
    #查询按钮
    def check(self):
        return self.driver.find_element_by_xpath("//*[@id='searchBar']/div[2]/button[2]/span")
    #查询结果
    def checkResult(self):
        return self.driver.find_element_by_xpath("//*[@id='curLeftBox']/div/div[2]/div[2]/div/div[1]/div[3]/table/tbody/tr/td[1]/div/span")

    #下一步
    def next(self):
        return self.driver.find_element_by_xpath("//*[@id='app']/div/div[3]/div[4]/button[1]/span")
    #产品信息下一步
    def productNext(self):
        return self.driver.find_element_by_xpath("//*[@id='app']/div/div[3]/div[5]/button[2]/span")
    #提交
    def commit(self):
        return self.driver.find_element_by_xpath("//*[@id='app']/div/div[3]/div[3]/button[2]/span")

    #确定
    def confirm(self):
        return self.driver.find_element_by_xpath("/html/body/div[2]/div/div[3]/button/span")
